﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/grid.master"  CodeFile="AllColumnType.aspx.cs" Inherits="UI_AllColumnType" %>


<%@ Register Src="../UseControl/PageCommon.ascx" TagName="PageCommon" TagPrefix="uc1" %>
<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v8.3, Version=8.3.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dxwtl" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.3.Export, Version=8.3.2.0, Culture=neutral, PublicKeyToken=5377C8E3B72B4073"
    Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.v8.3, Version=8.3.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
    Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dxcp" %>
<%@ Register Assembly="DevExpress.Web.v8.3, Version=8.3.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dxp" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.3, Version=8.3.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v8.3, Version=8.3.2.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<asp:Content ID="Content2" ContentPlaceHolderID="C2" runat="Server">

    <script type="text/javascript" src="../Script/Common.js" />

    <dxcp:ASPxCallbackPanel ID="ajaxPanel" ClientInstanceName="ajaxPanel" LoadingPanelText="数据加载中…"
        OnCallback="ajaxPanel_Callback" runat="server" HideContentOnCallback="False">
        <PanelCollection>
            <dxp:PanelContent runat="server">
                <div class="queryLine" />
                <div class="buttonLine">
                    <uc1:PageCommon ID="commonPageCtrl" GridClientName="InfoGrid" OnExport="btnExport_Click"
                        runat="server" />
                </div>
                <div class="infoGrid">
                    <dxwgv:ASPxGridView ID="InfoGrid" ClientInstanceName="InfoGrid" DataSourceID="dataSource"
                        KeyFieldName="ID" Width="100%" runat="server" OnCustomCallback="InfoGrid_CustomCallback"
                        OnInitNewRow="InfoGrid_InitNewRow" OnRowDeleting="InfoGrid_RowDeleting" OnRowValidating="InfoGrid_RowValidating"
                        OnPreRender="InfoGrid_PreRender" AutoGenerateColumns="False" OnRowInserting="InfoGrid_RowInserting"
                        OnRowUpdating="InfoGrid_RowUpdating">
                        <Columns>
                            <dxwgv:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0">
                                <HeaderTemplate>
                                    <input title="[选择/取消选择]本页所有行" onclick="InfoGrid.SelectAllRowsOnPage(this.checked);"
                                        style="vertical-align: middle;" id="chkPageSelectAll" type="checkbox" /></HeaderTemplate>
                                <HeaderStyle HorizontalAlign="Center" />
                            </dxwgv:GridViewCommandColumn>
                            <dxwgv:GridViewDataTextColumn FieldName="Name" />
                            <dxwgv:GridViewDataTextColumn FieldName="Mode" />
                            <dxwgv:GridViewDataDateColumn FieldName="MarketDate" />
                            <dxwgv:GridViewDataSpinEditColumn PropertiesSpinEdit-NumberType="Float" PropertiesSpinEdit-DisplayFormatString="f"
                                FieldName="Price" />
                            <dxwgv:GridViewDataCheckColumn FieldName="IsAuto" />
                            <dxwgv:GridViewDataSpinEditColumn FieldName="PosNum" />
                            <dxwgv:GridViewDataComboBoxColumn FieldName="BelongCompanyID">
                                <PropertiesComboBox DataSourceID="dsCompany" EnableIncrementalFiltering="True" TextField="Name"
                                    ValueField="CompanyID" ValueType="System.String" />
                            </dxwgv:GridViewDataComboBoxColumn>
                            <dxwgv:GridViewDataComboBoxColumn FieldName="Style">
                                <PropertiesComboBox DataSourceID="dsEnumCarStyle" EnableIncrementalFiltering="True"
                                    TextField="Name" ValueField="ID" ValueType="System.String" />
                            </dxwgv:GridViewDataComboBoxColumn>
                            <dxwgv:GridViewCommandColumn Caption="操作">
                                <EditButton Visible="True" />
                                <DeleteButton Visible="True" />
                            </dxwgv:GridViewCommandColumn>
                        </Columns>
                    </dxwgv:ASPxGridView>
                </div>
            </dxp:PanelContent>
        </PanelCollection>
    </dxcp:ASPxCallbackPanel>
    <asp:ObjectDataSource ID="dataSource" runat="server" DataObjectTypeName="OT.Module.Model.Car_MDL"
        TypeName="OT.Module.BLL.Car_BLL" OnSelecting="dataSource_Selecting" SelectMethod="Select"
        OnObjectCreating="ds_ObjectCreating">
        <SelectParameters />
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="dsCompany" runat="server" DataObjectTypeName="OT.Module.Model.Company_MDL"
        OnObjectCreating="dsCompany_ObjectCreating" SelectMethod="Select" TypeName="OT.Module.BLL.Company_BLL" />
    <asp:ObjectDataSource ID="dsEnumCarStyle" runat="server" DataObjectTypeName="CarStyle"
        OnObjectCreating="ds_EnumCarStyleCreating" SelectMethod="Select" TypeName="OT.Common.Generic.EnumDataSource" />
</asp:Content>
